home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Source Code
/
C
/
Frameworks
/
Grant's CGI Framework 1.0b12
/
Util
/
IconUtil.c
< prev
next >
Wrap
Text File
|
1995-12-09
|
1KB
|
54 lines
/*****
*
* IconUtil.c
*
* This is a support file for "Grant's CGI Framework".
* Please see the license agreement that accompanies the distribution package
* for licensing details.
*
* Copyright ©1995 by Grant Neufeld
* grant@acm.com
* http://arpp1.carleton.ca/grant/
*
*****/
#include "MyConfiguration.h"
#if kCompileWithForeground
#include <Icons.h>
#include "compiler_stuff.h"
#include "IconUtil.h"
/*** FUNCTIONS ***/
/* IM-MoreMTB: 5-10 */
void
IconDrawFromFamily ( short resID, Rect *destRect, Handle *iconSuiteHdl )
{
IconSelectorValue iconType;
IconAlignmentType align;
IconTransformType transform;
OSErr theErr;
if ( *iconSuiteHdl == nil )
{
iconType = svAllAvailableData;
theErr = GetIconSuite ( iconSuiteHdl, resID, iconType );
}
if ( *iconSuiteHdl != nil )
{
align = atAbsoluteCenter;
transform = ttNone;
theErr = PlotIconSuite ( destRect, align, transform, *iconSuiteHdl );
}
} /* IconDrawFromFamily */
#endif /* kCompileWithForeground */
/***** EOF *****/